//package com.mycompany.app.testsuite.extmenu;
//
//import java.io.FileInputStream;
//import java.io.IOException;
//import java.util.HashSet;
//
//import org.apache.commons.io.IOUtils;
//
//import utils.extjs.ExtTreeProviderFunctionAgent;
//
//import com.mycompany.app.common.extmenu.ExtTreeProviderImp;
//import com.mycompany.app.common.test.BaseTestUtils;
//import com.mycompany.app.util.SpringUtils;
//
//public class ExtMenuTest extends BaseTestUtils {
//    public static void main(String[] args) throws IOException {
//   
//        try {
//            String menu = IOUtils
//                    .toString(new FileInputStream(
//                            "D:\\personal\\sky-drive\\src\\main\\resources\\config\\menu\\Ext-menu.xml"));
//            HashSet<String> set = new HashSet<String>();
//            set.add("AUTH_MAPPING_FULL");
//            System.out.println(ExtTreeProviderFunctionAgent.getJSONTree(menu,
//                    set, "zh"));
//            ExtTreeProviderImp p = (ExtTreeProviderImp) SpringUtils
//                    .getApplicationContext().getBean("extTreeProvider");
//            System.out.println(p.provide(set, "zh"));
//        } catch (Exception e) {
//            e.printStackTrace();
//            // TODO: handle exception
//        }
//    }
//}
